package com.sline.generic;

public class Demo2_Generic {
    public static void main(String[] args) {

    }
}

interface Inter<T> {
    public void show(T t);
}

class Demo1 implements Inter<String> {
    @Override
    public void show(String s) {
        System.out.println(s);
    }
}

class Demo2<T> implements Inter<T> {
    @Override
    public void show(T t) {
        System.out.println(t);
    }
}
